﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace Common
{
    [KnownType("GetKnownTypes")]
    [DataContract]
    public class HsePSObject
    {
        [DataMember]
        public string Name { get; protected set; }

        public HsePSObject()
        {
            
        }

        static IEnumerable<Type> GetKnownTypes()
        {
            var types = new List<Type>();
            types.Add(typeof(Article));
            //types.Add(typeof(MailMessage));
            types.Add(typeof(Attachment));
            types.Add(typeof(Review));
            types.Add(typeof(Section));
            types.Add(typeof(Issue));
            //types.Add(typeof(CheckedArticle));
            //types.Add(typeof(ReviewedArticle));
            return types;
        }
    }
}